package com.swj.modules.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.swj.common.core.model.SysUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 10834
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class SysUserQueryVO extends SysUser {

    /**
     * 分页条件--当前页码
     */
    @TableField(exist = false)
    private Long pageNum;

    /**
     * 分页条件--当前页的大小
     */
    @TableField(exist = false)
    private Long pageSize;

    /**
     * 查询条件--开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(exist = false)
    private Date beginTime;

    /**
     * 查询条件--结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(exist = false)
    private Date endTime;

    public SysUserQueryVO(String id) {
        super(id);
    }
}
